package pl.matt.service.impl;

import java.util.Collection;

import pl.matt.media.manager.MediaManagersFactory;
import pl.matt.model.FrameRegionType;
import pl.matt.model.Rectangle;
import pl.matt.service.ExtractorService;


public class FaceExtractorService extends AbstractExtractorService implements ExtractorService {

	@Override
	protected Collection<Rectangle> detectRectangles(String imagePath) {
		Collection<Rectangle> rectangles = MediaManagersFactory.getObjectsDetectorManager().detectFaces(imagePath);
		return rectangles;
	}

	@Override
	protected FrameRegionType getFrameRegionType() {
		return FrameRegionType.FACE;
	}


}
